import App from './App'
import Vue from 'vue'
import io from './lib/weapp.socket.io.js';
import navigationTitle from './pages/components/navigationTitle'

Vue.config.productionTip = false
Vue.prototype.socket = io('http://localhost:3002')

Vue.component('navigationTitle', navigationTitle)

App.mpType = 'app'

const app = new Vue({
    ...App,
    onLaunch() {
        uni.getSystemInfo({
            success: (res) => {
                // 状态栏高度
                uni.setStorageSync('statusBarHeight', res.statusBarHeight)
                // 导航栏高度
                uni.setStorageSync('navigationBarHeight', res.navigationBarHeight)
            }
        })
    }
})


app.$mount()